import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DECO_CLM: AppRouteRecordRaw = {
  path: '/deco-clm',
  name: 'DecoClm',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '营销中心',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: '/deco-clm-lead',
      name: 'DecoClmLead',
      component: () => import('@/views/deco/clm/lead/list/index.vue'),
      meta: {
        locale: '线索管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-clm-channel',
      name: 'DecoClmChannel',
      component: () => import('@/views/deco/clm/channel/list/index.vue'),
      meta: {
        locale: '渠道管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/deco-clm-activity',
      name: 'DecoClmActivity',
      component: () => import('@/views/deco/clm/activity/list/index.vue'),
      meta: {
        locale: '活动管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default DECO_CLM;
